package com.su.common;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;


/**
 * 保底
 */
@ControllerAdvice(basePackages = "com.su.controller")
public class MyException {
    @ExceptionHandler(Exception.class)
    public R<String> exceptionHandler(Exception e){
        return R.error("当前网络状态不佳 ");
    }
}
